import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('PlaneAutoScale')
export class PlaneAutoScale extends Component {

    @property(Node) playerNode: Node

    start() {

    }

    update(deltaTime: number) {
        const scale: number = Math.ceil(this.playerNode.getScale().x / 10)
        this.node.setScale(scale * 100, scale, scale * 100)
    }
}


